<%@ page import="java.util.Date" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>session Time</title>
</head>
<body>
   <h3>session Time页面</h3>
  <%
    long t1 = session.getCreationTime() ;
    long t2 = session.getLastAccessedTime() ;
  %>
  <h3>session CREATE : <%=new Date(t1)%></h3>
  <h3>session last access: <%=new Date(t2)%></h3>
  <h3>The time online: <%=(t2-t1)/1000%></h3>
</body>
</html>
